﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace Albatross.WPF.Common {
	public class AutoViewService : IViewService {
		IViewService _baseService;

		public AutoViewService(IViewService baseService) {
			_baseService = baseService;
		}

		public WPF.Common.PubSub.IPublisher Publisher { get { return _baseService.Publisher; } }
		public void LoadElement(UIElement elem) { _baseService.LoadElement(elem); }
		public void UnloadElement(UIElement elem) { _baseService.UnloadElement(elem); }
		public bool? ShowDialog(IWorkspaceConstruct construct, int? width, int? height) {
			return _baseService.ShowDialog(construct, width, height);
		}
		public void ShowWorkspace(IWorkspaceConstruct construct) { _baseService.ShowWorkspace(construct); }
		public bool CloseWorkspace(IWorkspaceViewModel vm) { return _baseService.CloseWorkspace(vm); }
		public void CreateWindow(IWorkspaceConstruct construct) { _baseService.CreateWindow(construct); }

		public void ShowWarningMessageBox(string msg) { }
		public void ShowErrorMessageBox(string msg) { }
		public void ShowInfoMessageBox(string msg) { }
		public bool ShowConfirmationMessageBox(string msg) { return false; }
	}
}
